const path = require('path')

function resolve (dir) {
   return path.join(__dirname, dir)
}

module.exports = {
   publicPath: './',
   chainWebpack: config => {
      config.resolve.alias
         .set('@', resolve('src'))
         .set('components', resolve('src/components'))
   },
   // 按需加载ant-design-vue需要配置这行代码,另外在babel的配置文件需要添加插件
   css: {
      loaderOptions: {
         less: {
            javascriptEnabled: true
         }
      }
   }
}
